package NP;

import java.util.Iterator;
import java.util.Random;

public class PbBinPack extends NP {
	private int n; //un nb d’objets
	private int p[]; // n entiers, les poids des objets
	private int nbs; // le nombre de sacs
	private int c[]; // capacités des sacs

	// A completer
	public PbBinPack(int n, int p[], int nbs, int c[]){
		this.n = n;
		this.p = p;
		this.nbs = nbs;
		this.c = c;
	}

	public int getN() {
		return n;
	}



	public void setN(int n) {
		this.n = n;
	}



	public int[] getP() {
		return p;
	}
	
	public int getP(int indice) {
		//verif indice
		return p[indice];
	}



	public void setP(int[] p) {
		this.p = p;
	}



	public int getNbs() {
		return nbs;
	}



	public void setNbs(int nbs) {
		this.nbs = nbs;
	}



	public int[] getC() {
		return c;
	}
	
	public int getC(int indice) {
		//verif indice
		return c[indice];
	}



	public void setC(int[] c) {
		this.c = c;
	}



	public Certificat cert() {		
		return  new CertificatBinPack(this);
	}

	// A completer
}
